def multiply() :
    a = 0
    n = int(input("输入乘法表程度n = "))
    while a < n :
        a += 1
        b = 0
        while b < a :
            b += 1
            print(a,'*',b,'=',a*b,end = '\t')
        print()

multiply()